package com.fjrcloud.dao;

import com.fjrcloud.entity.TemplateWarehouse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

/**
 * Created by shengjian.lin on 16-12-30.
 */
@Repository
public interface TemplateWarehouseDao extends BaseDao<TemplateWarehouse,Integer> {

    Page<TemplateWarehouse> findByNameAndValidOrderByVersionDesc(String name,boolean valid, Pageable pageable);

}
